// pages/result/result.js

const results = require("../../utils/resultsData.js").data

Page({

    /**
     * 页面的初始数据
     */
    data: {
        index: -1,
        res: []
    },

    /**
     * 生命周期函数--监听页面加载
     */
    onLoad: function (options) {
        let hash = options.hash
        let index = hash % results.length
        
        this.setData({
            index: index,
            res: results
        })
        
    },
})